package com.huaruan.food.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * FoodType entity. @author MyEclipse Persistence Tools
 */

public class FoodType implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	
	Set<Food> foods = new HashSet<Food>(0);

	// Constructors

	public Set<Food> getFoods() {
		return foods;
	}

	public void setFoods(Set<Food> foods) {
		this.foods = foods;
	}

	/** default constructor */
	public FoodType() {
	}

	/** full constructor */
	public FoodType(String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}